Skip to content

feat: pre splash screen - #739

Open
tttsaurus wants to merge 30 commits into
develop/0.8from
feat/pre-splash
Open

tttsaurus wants to merge 30 commits into
develop/0.8from
feat/pre-splash

Conversation

@tttsaurus

Copy link
Copy Markdown
Member
  • Implemented SDL & Swing dual backend
    • SDL renderer launches on another thread with an isolated class loader (and no Minecraft classes used)
    • Swing renderer runs on its own helper process
    • SDL is preferred. Mac OR <GL46 environments use Swing
  • Source patches are only added for Minecraft#init
  • Modified multiple FML classes, CleanroomModDiscoverer, CoreModManager etc to get the loading status
  • Shaders are placed in module/cleanroom/src/main/resources/assets/cleanroom/shaders
  • PreSplashManager only manages data and is thread safe. Call PreSplashManager.INSTANCE.notifyPhase & PreSplashManager.INSTANCE.notifyDetails to publish updates
  • PreSplashScreenContainer handles the heavy lifting including SdlSplashRenderer & SwingSplashRenderer initialization
  • Entrypoint: PreSplashScreenContainer#start & PreSplashScreenContainer#finish
  • Optional pre splash screen icon is supported (it loads ./config/cleanroom_pre_splash_icon.png if present; see IconDrawer) for SdlSplashRenderer

SdlSplashRenderer
image

SwingSplashRenderer
image

Tested on Gnome, Niri, Windows. Tested with ~200 mods.

Future Improvements

  • A config file can be added to modify title, background color, background glow
  • A better SwingSplashRenderer implemenation

@Ecdcaeb

Ecdcaeb commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

look closer, i care the fonts at photo 2 SwingSplashRenderer

@erialsan

Copy link
Copy Markdown

cooooooooooooooolllll

@tttsaurus
tttsaurus requested a review from Rongmario November 23, 2026 06:14
@Rongmario Rongmario added this to the Cleanroom 0.8.0 milestone Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants